package com.hnx.admin.aurora.system.mapper.post;

import com.hnx.admin.aurora.annotation.AddInfo;
import com.hnx.admin.aurora.annotation.UpdateInfo;
import com.hnx.admin.aurora.system.domain.dto.post.entity.SysPostDTO;
import com.hnx.admin.aurora.system.domain.dto.post.query.PostQuery;
import com.hnx.admin.aurora.system.domain.param.post.form.PostForm;

import java.util.List;

public interface SysPostMapper {
    List<SysPostDTO> selectPostAll();
    List<SysPostDTO> selectPostByUserId(String userId);
    List<SysPostDTO> selectPostList(PostQuery post);
    @AddInfo
    int insertPost(PostForm post);

    int countUserPostById(String[] postIds);

    int deletePostByIds(String[] postIds);

    SysPostDTO selectPostById(String postId);
    @UpdateInfo
    int updatePost(PostForm post);
}
